"""
list =['Apple','Orange',1,55,55,3.6,True]
print('Orange' in list)

list.append(100)
print(list)

list.extend(['Python','Java'])
print(list)

list.insert(1,'Banana')
print(list)

list[2:2]=[3,4,5,6]
print(list)

x = list.pop()
print(list)

list.remove('Apple')
print(list)

print(list.index(3.6))

print(list.count(55))

list.reverse()
print(list)

c = list
c.clear()
print(c)
"""

"""
months = ['Jan','Fab','Mar','Apr','May','Jun','Jul','Aug','Sept','Oct','Nov','Dec']
endings = ['st','nd','rd'] + 17 * ['th'] + ['st','nd','rd'] + 7 * ['th']+['st']
weekdays = '一二三四五六七'

month = int(input("输入月份数字："))
day = int(input("输入第几天："))
weekday = int(input("输入星期几："))

month = months[month -1]
ordinal = str(day) + endings[day - 1]
weekday = "星期" + (weekdays[weekday - 1])
print(month + ' ' + ordinal + ',' + weekday)
"""

tup = eval(input('请输入任意个数，逗号分开：\n'))

ma = max(tup)
print(ma)

mi = min(tup)
print(mi)

su = sum(tup)
print(su)

le = len(tup)
print(le)

avg = su / le
print(avg)


